package k8s

import "time"

type LatencyInfo struct {
	// key格式{src_name}-{dst_name}, value为指标数组
	NodeLatencyToOthers map[string][]NodeLatency `json:"node_latency_to_others"`
	TimeStampList       []time.Time              `json:"timestamp_list"`
}

type NodeLatency struct {
	Latency   float64    `json:"latency"`
	TimeStamp *time.Time `json:"timestamp,omitempty"`
	Unit      string     `json:"unit"` // default is "ms"
}
